<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="zh">
<head>
<title>发表博文</title>
<style>
.posts-pagination {
	text-align: center;
	margin-top: -30px;
	margin-bottom: -15px;
}
.post {
	border-bottom: 1px dotted #ccc;
	margin-bottom: 20px;
}
.post h3 a {
	text-decoration: none;
	color: #000000;
}

.post-bottom {
	margin-bottom: 10px;
}
.pagination li a{
	margin-left: 5px;
}
.content-form {
	width: 100%;
}
</style>
</head>
<body>
	<div class="container">
		<div class="row">
			<div class="posts col-md-8 col-md-offset-2">
				<form class="post-form" role="form" action="/admin/post" method="post">
					<input type="hidden" name="id" value="${id }">
					<div class="form-group">
						<label for="post-input-title">博客标题</label>
						<input id="post-input-title" name="title" type="text" class="form-control" placeholder="博客标题" value="${title }">
					</div>
					<div class="form-group">
						<label for="post-input-content">博客正文</label>
						<textarea id="post-input-content" name="content" class="form-control" placeholder="博客正文">${content }</textarea>
					</div>
					<div class="form-group text-center">
						<button type="submit" class="btn btn-default">确定</button>
						<button type="button" class="btn btn-default">取消</button>
					</div>
					
				</form>
			</div>
		</div>
	</div>
	
	<script charset="utf8" src="/static/js/kindeditor-4.1.10/kindeditor.js"></script>
	<script charset="utf8" src="/static/js/kindeditor-4.1.10/lang/zh_CN.js"></script>
	<script>
		var editor;
		KindEditor.ready(function(k){
			editor = k.create('#post-input-content', {
				height : '350px'
			})
		});
	</script>
</body>
</html>